#!/bin/bash

cnts=0

while true;
do
    #let cnts++
    cnts=`expr ${cnts} + 1`
    echo "cnts: $cnts"
    if [ $cnts -gt 5 ]; then
        break
    fi
done

echo "result: $cnts"
